<% for column in User.content_columns %>
  <% if @user.user_type == "student" %>
      <% if column.name != "hashed_password" and column.name != "salt" and column.name != "hashed_password" %>
      <p>
        <b><%= column.human_name %>:</b> <%=h @user.send(column.name) %>
      </p>
       <% end %>
   <% end %>
  <% if @user.user_type == "teacher" %>
    <% if column.name != "hashed_password" and column.name != "salt" and column.name != "hashed_password" and column.name != "stuid" and column.name != "sex" %>
    <p>
      <b><%= column.human_name %>:</b> <%=h @user.send(column.name) %>
    </p>
  <% end %>
  <% end %>
<% end %>

<%= link_to 'Delete', :action => 'delete_user', :id => @user %> |
<%= link_to 'Back', :action => 'list_user' %>
